package cn.alibaba.service;

import cn.alibaba.mapper.OrdersMapper;
import cn.alibaba.pojo.Orders;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class OrderServiceImpl implements OrderService {
    @Autowired
    private OrdersMapper ordersMapper;

    @Override
    public int createOrder(Orders order) {
        return ordersMapper.insert(order);
    }
}
